package com.liuche.wiki.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 题库题目
 */
@ApiModel(description="题库题目")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wiki_article")
public class WikiArticle implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 题库 id
     */
    @TableField(value = "wiki_id")
    @ApiModelProperty(value="题库 id")
    private Long wikiId;

    /**
     * 题目 id
     */
    @TableField(value = "article_id")
    @ApiModelProperty(value="题目 id")
    private Long articleId;

    /**
     * 创建用户 id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="创建用户 id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}